#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    int ch = 0;
    while (~scanf("%d\n", &ch))
    {
        if (ch > 0)
        {
            printf("%d\n", 1);
        }
        else if (ch == 0)
        {
            printf("%.1f\n", 0.5);
        }
        else {
            printf("%d\n", 0);
        }
    }
    return 0;
}